package com.oa.pm.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.oa.core.PageResult;
import com.oa.pm.dto.SchoolRecruitChannelsAddDTO;
import com.oa.pm.dto.SchoolRecruitChannelsListParamDTO;
import com.oa.pm.entity.SchoolRecruitChannels;
import com.baomidou.mybatisplus.service.IService;
import com.oa.pm.vo.SchoolRecruitChannelsDetailsVO;
import com.oa.pm.vo.SchoolRecruitChannelsListVO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 校招渠道管理表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface ISchoolRecruitChannelsService extends IService<SchoolRecruitChannels> {
    /**
     * 自定义分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<SchoolRecruitChannels> findList(Integer pageNum, Integer pageSize);

    /**
    * 根据id查询
    */
    SchoolRecruitChannelsDetailsVO findSchoolRecruitChannelsById(String id);


    PageResult<SchoolRecruitChannelsListVO> findSchoolRecruitChannelsList(SchoolRecruitChannelsListParamDTO schoolRecruitChannelsListParamDTO);

    /**
     * 添加渠道
     * @return
     */
    boolean saveSchoolRecruitChannels(SchoolRecruitChannelsAddDTO schoolRecruitChannelsAddDTO);

    void export(SchoolRecruitChannelsListParamDTO schoolRecruitChannelsListParamDTO, HttpServletResponse response);
}
